﻿@model LabManagement.Data.Category

@{
    ViewBag.Title = "AddNew";
    ViewBag.PageHeader = "Add New Category";
}
<div class="box box-bordered">
    <div class="box-title">
        <h3>
            <i class="fa fa-th-list"></i>@ViewBag.PageHeader
        </h3>
    </div>
    <div class="box-content nopadding">
        @using (Html.BeginForm("AddNew", "Categories", FormMethod.Post, new { @class = "form-horizontal form-bordered" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)
            <div class="form-group">
                @Html.LabelFor(model => model.CategoryName, new { @class = "control-label col-sm-2" })
                <div class="col-sm-10">                   
                        @Html.TextBoxFor(model => model.CategoryName, new { @class = "form-control" })      
                    <span class="help-block">
                        Please enter category name
                    </span>
                    @Html.ValidationMessageFor(model => model.CategoryName)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.CategoryType, new { @class = "control-label col-sm-2" })
                <div class="col-sm-10">                  
                        @Html.TextBoxFor(model => model.CategoryType, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.CategoryType)
                   
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Active, new { @class = "control-label col-sm-2" })
                <div class="col-sm-10">                  
                        @Html.CheckBoxFor(model => model.Active, new { @class = "icheck-me", data_skin = "square", data_color = "green" })
                        @Html.ValidationMessageFor(model => model.Active)                    
                </div>
            </div>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary">Save </button>
                @Html.ActionLink("Cancel", "Index", null, new { @class = "btn" })
            </div>
        }
    </div>
</div>       
